<template>
  <ElMenu router class="reset_menu" active-text-color="#ff8203">
    <ElMenuItem :index="'home'" :route="{name: 'home'}">
        <ElIcon><component :is="'HomeFilled'"/></ElIcon>
        <span>首页</span>
    </ElMenuItem>
    <SubMenu :menuList="store.allMenu"/>
  </ElMenu>
</template>


<script setup>
import { ElMenu, ElMenuItem, ElIcon} from 'element-plus'
import SubMenu from './subMenu.vue'
import {menuStore} from '@/stores/menu.js'
import { ref } from 'vue';
const store = menuStore()
</script>
<style lang="less" scoped>
.reset_menu{
  background: none
}
.reset_menu /deep/ .el-menu{
  background: none
}
</style>